#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<memory.h>
#include<string.h>
#define MAX 100
#define MAX_NAME 20
#define MAX_SEX 10
#define MAX_IDENTITY 10
#define MAX_NUM 15

struct Peo
{
	char name[MAX_NAME];
	char Sex[MAX_SEX];
	char identity[MAX_IDENTITY];
	char num[MAX_NUM];
};


struct Contact
{
	struct Peo data[MAX];
	int sz;
};
void Initaddr(struct Contact* pc);

void add_peo(struct Contact* pc);

void del_peo(struct Contact* pc);

void Show_addr(const struct Contact* pc);

void Search_peo(const struct Contact* pc);

void Modify_peo(struct Contact* pc);

void Sort_addr(struct Contact* pc);
